package com.song.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 菜单信息
 * </p>
 *
 * @author song
 * @since 2024-06-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("api_info")
@ApiModel(value="ApiInfo对象", description="菜单信息")
public class ApiInfo extends Model<ApiInfo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标识ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "菜单路径")
    @TableField("api")
    private String api;

    @ApiModelProperty(value = "菜单描述")
    @TableField("ms")
    private String ms;

    @ApiModelProperty(value = "菜单等级")
    @TableField("dj")
    private String dj;

    @ApiModelProperty(value = "父级菜单ID")
    @TableField("fjid")
    private String fjid;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
